package com.solrtest.doman;


import lombok.Data;
import org.apache.solr.client.solrj.beans.Field;
import org.thymeleaf.util.DateUtils;

import java.util.Date;
import java.util.Locale;

/**
 * 实体类
 */
@Data
public class Product {

    @Field
    private String id;

    @Field
    private String productName;

    @Field
    private Double productPrice;

    @Field
    private String productSpec;

    @Field
    private String createTime = DateUtils.format(new Date(), "yyyy-MM-dd HH:mm:ss", Locale.CHINA);

    @Field
    private int isDel = 0;
}
